import {baseUrl} from "@/config/env";

export default () => {
    return {
        index: true,
        size: 'small',
        labelWidth: 100,
        menuAlign: 'center',
        menuPosition: "right",
        menu: true,
        column: [
            {
                label: '父级',
                prop: 'parentId',
                span: 12,
                type: "tree",
                dicUrl: baseUrl + "/start/sysDept/listTree",
                props: {
                    label: "name",
                    value: "id",
                },
                showColumn: false,
            },
            {
                label: '机构名称',
                span: 12,
                prop: 'name',
                display: false,
            },
            {
                label: '机构编码',
                span: 12,
                prop: 'code',
            }, {
                label: '机构类型',
                span: 12,
                prop: 'deptType',
                type: 'select',
                dicData: [
                    {label: "企业/单位", value: 0},
                    {label: "部门", value: 1},
                ]
            },
            {
                label: '序号',
                prop: 'sort',
                type: "number",
                span: 12,
            },

        ]
    }
}
